import { constantRoutes } from '@/router/index'
export default {
  namespaced: true,
  state: {
    menuList: []
  },
  mutations: {
    // 将动态路由存储vuex中
    setMenus(state, playload) {
      state.menuList = [...constantRoutes, ...playload]
    }
  }
}
